home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d2 / reboot.arc / REIPL.ASM < prev    next >
Assembly Source File  |  1987-02-07  |  5KB  |  129 lines

  1.                 page    60,132
  2.                 title   REIPL.ASM = Performs a Warm System Boot =
  3.  
  4.                 comment |
  5.  
  6.          REIPL - Performs a warm system boot, Version 1.00 - 12/20/85
  7.  
  8.      Copyright(c) 1985, GEE WIZ(tm) Software Company, ALL RIGHTS RESERVED
  9.  
  10.               Written by Gee M. Wong for Public Domain use ONLY.
  11.  
  12.  
  13.  
  14.                                     NOTICE
  15.                                     ------
  16.  
  17. REIPL may not be sold.  It's code however may be freely used in any product,
  18. commerical or public.
  19.  
  20.  
  21.                             GEE WIZ Sofware Company
  22.                                10 Manton Avenue
  23.                            East Brunswick, NJ 08816
  24.                                 c/o: Janet Huie
  25.  
  26.  
  27.  
  28.                                   DESCRIPTION
  29.                                   -----------
  30.  
  31. REIPL may be invoked from a BATCH file or a high level language program to
  32. force a WARM system boot to take place.
  33.  
  34. REIPL has been test on a 3270-PC, XT/370, and AT/370 equipped with the
  35. standard floppy disk and hard disk drives and controllers supplied by IBM,
  36. using PC-DOS(tm) 2.1 and 3.1.
  37.  
  38. REIPL executes instruction in the BIOS ROM.  It is therefore, only sensitive
  39. to the BIOS ROM.  Any machine which can execute either MS-DOS(tm) or PC-DOS(tm)
  40. will be able to run REIPL.
  41.  
  42.  
  43.  
  44.                                      USAGE
  45.                                      -----
  46.  
  47. To perform a system boot, use the command:
  48.  
  49.                 REIPL
  50.  
  51.  
  52.  
  53.                                   DISCLAIMER
  54.                                   ----------
  55.  
  56. The author has taken due care in developing and testing the effectiveness of
  57. this utility, and makes no expressed or implied warranty of any kind with
  58. regard to this utility.  In no event shall the author or GEE WIZ Software
  59. Company be liable for incidental or consequential damages in connection with or
  60. arising out of the use of this utility.
  61.  
  62.  
  63.  
  64.                                      NOTES
  65.                                      -----
  66.  
  67.               GEE WIZ is a trademark of GEE WIZ Software Company.
  68.                MS-DOS is a trademark of Microsoft Incorporated.
  69.                PC-DOS is a trademark of Microsoft Incorporated.
  70.           PC-DOS is a trademark of International Bussiness Machines.
  71.  
  72.  
  73. ----------------|
  74.                 page
  75. ;=======================================================================;
  76. ;                                                                       ;
  77. ;       This segment is used to reference a "JMP" instruction in        ;
  78. ;       ROM which branch to the boot code in ROM.                       ;
  79. ;                                                                       ;
  80. ;=======================================================================;
  81.  
  82. rom_seg         segment at 0ffffH
  83. boot_jmp        label   far
  84. rom_seg         ends
  85.  
  86.  
  87. ;=======================================================================;
  88. ;                                                                       ;
  89. ;       This segment is used to reference a word in the BIOS data       ;
  90. ;       area which is used to determine if a WARM or COLD reboot        ;
  91. ;       should be performed by the reboot code in ROM.                  ;
  92. ;                                                                       ;
  93. ;=======================================================================;
  94.  
  95. bios_seg        segment at 0040H
  96.                 org     bios_seg+72H
  97. boot_flags      label   word
  98. bios_seg        ends
  99.  
  100. cold_boot       equ     0000H           ;Value to indicate COLD reboot
  101. warm_boot       equ     1234H           ;Value to indicate WARM reboot
  102.  
  103.  
  104.                 page
  105. ;=======================================================================;
  106. ;                                                                       ;
  107. ;       The following lines set the boot flags in the BIOS Data         ;
  108. ;       Area and then invoke the boot code in the BIOS ROM.             ;
  109. ;                                                                       ;
  110. ;=======================================================================;
  111.  
  112. code_seg        segment
  113.                 assume  CS:code_seg, DS:code_seg
  114.                 org     code_seg+100H
  115.  
  116. reipl           proc
  117.                 mov     AX,bios_seg
  118.                 mov     DS,AX           ;Point to BIOS Data Area
  119.                 assume  DS:bios_seg
  120.                 mov     boot_flags,cold_boot
  121.  
  122.                 assume  DS:rom_seg
  123.                 jmp     boot_jmp        ;Jump to Boot Code
  124. reipl           endp
  125.  
  126. code_seg        ends
  127.  
  128.                 end     reipl
  129.